<?php
function set_session($nome,$username,$admin){
    $_SESSION['nome'] = $nome;
    $_SESSION['username'] = $username;
    $_SESSION['admin'] = $admin;
}
function logoff(){
    session_destroy();
}